<!--
 * @Author: ChunLai
 * @Date: 2022-03-30 10:36:35
 * @LastEditTime: 2022-08-26 16:57:25
 * @Description: 投保前置页面
 * @FilePath: \3.newInsure\src\views\preinsure\index.vue
-->

<template>
  <div>
    <ReadCom v-if="pretype === 'read'" />
    <ExamCom v-else-if="pretype === 'exam'" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex';
import ReadCom from './ReadCom';
import ExamCom from './ExamCom';

export default {
  name: 'PreInsurePage',
  components: {
    ReadCom,
    ExamCom,
  },
  data() {
    return {};
  },
  computed: {
    ...mapGetters({
      preInsConfig: 'home/preInsConfig',
    }),
    pretype() {
      return (this.preInsConfig && this.preInsConfig.type) || '';
    },
  },
  created() {},
  methods: {},
};
</script>
